#include <SDL_opengl.h>
#include "impl.h"

bool cmdline(int argc, char * argv[])
{
	return true;
}

void init()
{
	glClearColor(1,1,1,1);
}

void draw()
{
	glClear(GL_COLOR_BUFFER_BIT);
	SDL_GL_SwapBuffers();
}

bool event(SDL_Event * ev)
{
	switch (ev->type) {
	case SDL_KEYDOWN:
		if (ev->key.keysym.sym == 27)
			return false;
		break;
	}
	return true;
}

void cleanup()
{
}

